@media only screen and (max-width: 768px) {
    body {
        font-size: 14px;
    }

    h1,
    h2,
    h3 {
        font-size: 1.5em;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 10px 0;
    }

    nav ul li a {
        font-size: 16px;
    }

    .sidebar,
    .content-container,
    .project-list,
    .games-list,
    .steam-games-list,
    .game-item,
    #games h2 {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .main-content,
    .sidebar,
    .project-card,
    .project-actions .button,
    .games-list .game-item,
    .steam-games-list .game-item,
    .game-item a.button,
    #weather,
    #home .text-container {
        width: 100%;
    }

    .main-content,
    .sidebar {
        margin: 0;
    }

    .sidebar>section,
    .project-card,
    .tutorial-item,
    .games-list .game-item,
    .steam-games-list .game-item,
    #home .text-container {
        margin-bottom: 20px;
    }

    .project-list,
    .games-list,
    .steam-games-list {
        gap: 15px;
    }

    .project-card img,
    .game-item img {
        height: auto;
    }

    .game-item img {
        width: 100%;
        margin-bottom: 10px;
    }

    .project-card h3{
        font-size: 20px;
    }

    .game-item .game-info h3 {
        font-size: 16px;
    }

    .game-item .game-info,
    .typing-effect {
        align-items: center;
        text-align: center;
        font-size: 14px;
    }

    .button {
        padding: 10px 20px;
        font-size: 14px;
    }

    .game-item a.button {
        margin-top: 10px;
        padding: 8px 16px;
        box-sizing: border-box;
        text-align: center;
        max-width: 100%;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    #home .avatar {
        width: 120px;
        height: 120px;
    }

    .glitch {
        font-size: 28px;
    }

    .typing-effect {
        letter-spacing: 0.1em;
    }

    #weather {
        margin-top: 20px;
    }

    .weather-widget {
        flex-direction: row;
        align-items: center;
        justify-content: center;
    }

    .weather-icon img {
        width: 60px;
        height: 60px;
    }

    .weather-info {
        margin-top: 0;
        margin-left: 15px;
        text-align: left;
    }

    footer p {
        font-size: 12px;
    }

    header {
        padding: 50px 0;
    }

    section {
        margin-bottom: 50px;
    }

    #about,
    #contact {
        padding: 25px;
    }

    #contact ul li {
        font-size: 14px;
    }

    .project-actions .button,
    #games h2 button {
        margin-top: 10px;
    }
}